package com.example.myapplication

import org.junit.Test

import org.junit.Assert.*
import java.math.BigDecimal

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
    fun addition_isCorrect2() {
        // Using BigDecimal to sum values
        val value = BigDecimal("0.01")
        var sum = BigDecimal("0.00")
        sum = sum.add(value)
        sum = sum.add(value)
        sum = sum.add(value)
        sum = sum.add(value)
        sum = sum.add(value)
        sum = sum.add(value)
        assertEquals(sum.toString(), "0.06")
    }


}